<?php
session_start();
?>
<html>
<head>


<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

</head>

<body bgcolor="#FFFFFF">
<?php      

include("../../MerchandiseBay/conn.php");

  $username=$_SESSION['username'];
  $SQL="select * from users where username='".$_SESSION['username']."'";
  //$SQL="select * from users where username='$username'";
  $qry=mysql_query($SQL,$conn);

  while($row=mysql_fetch_array($qry))
	    { 
		  extract($row);  
?>

<form name="reservation" method="post" action="payment.php" onSubmit="return checkData()">
  <table width="400" height="170" border="0" cellpadding="0" cellspacing="0">
    <tr> 
      <td height="33" colspan="2" bgcolor="#FFFFFF"><strong><font color="#0066FF" size="5">PAYMENT</font></strong></td>
    </tr>
    <tr> 
      <td width="45%" height="32"><div align="right"><font color="#000000"><strong>Name 
      * :</strong></font></div></td>
      <td width="55%"><input name="name" type="text" id="name" value="<?php echo $firstname; ?>"></td>
    </tr>
    <tr> 
      <td height="35"><div align="right"><font color="#000000"><strong>Credit Card Type * :</strong></font></div></td>
      <td><label>
        <select name="select">
          <option>---choose Card Type---</option>
          <option>Ambank Card</option>
          <option>Visa Card</option>
          <option>Smart Card</option>
        </select>
      </label></td>
    </tr>
    <tr> 
      <td height="32"><div align="right"><font color="#000000"><strong>Credit Card Number* 
        :</strong></font></div></td>
      <td><input name="email" type="text" id="email" value=""></td>
    </tr>
    <tr> 
      <td height="24" >        <p align="right"><font color="#000000"><strong>Bank * :</strong></font></p></td>
      <td><p>
        <select name="select2">
          <option>---choose Bank---</option>
          <option>Ambank</option>
          <option>CIMB</option>
          <option>BSN</option>
          <option>AFFIN BANK</option>
          <option>Eon Bank</option>
          </select>
      </p></td>
    </tr>
	 <tr> 
      <td height="32"></td>
      <td><input type="submit" name="Sub" value="Submit">
       <input type="reset" name="res" value="Reset"></td>
    </tr>
  </table>
  	<label></label>
  	<?php
	
}	

	?>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
</form>

<p>&nbsp;<!-- PopUp Calendar BEGIN -->

<!-- PopUp Calendar END --></p>
</body>
</html>
